import request from '@/utils/request'

export function getChangeAuth() {
  return request({
    url: '/biz/bizWages/changeAuth',
    method: 'get'
  })
}

// 查询工资条列表
export function listBizWages(query) {
  return request({
    url: '/biz/bizWages/list',
    method: 'get',
    params: query
  })
}

// 查询工资条详细
export function getBizWages(id) {
  return request({
    url: '/biz/bizWages/' + id,
    method: 'get'
  })
}

// 新增工资条
export function addBizWages(data) {
  return request({
    url: '/biz/bizWages',
    method: 'post',
    data: data
  })
}

// 修改工资条
export function updateBizWages(data) {
  return request({
    url: '/biz/bizWages',
    method: 'put',
    data: data
  })
}

// 删除工资条
export function delBizWages(id) {
  return request({
    url: '/biz/bizWages/' + id,
    method: 'delete'
  })
}
